﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using System.Security.Cryptography;
using Coowork.WcfCommon;

namespace Coowork.WcfServer
{
    class Program
    {
        static void Main(string[] args)
        {

            try
            {
                AppServer.Start();

                using (ServiceHost host = new ServiceHost(typeof(ExampleService)))
                {
                    host.Open();
                    Console.WriteLine("Server Started");
                    Console.ReadLine();
                    host.Close();
                }
            }
            finally
            {
                AppServer.Close();
            }
        }
    }
}
